﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameBase.Form.Control
{
    abstract class TextControl : MyControl
    {
        protected String text;
        protected SpriteFont font;

        public SpriteFont Font
        {
            get { return font; }
            set { font = value; }
        }

        public String Text
        {
            get { return text; }
            set { text = value; }
        }
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            //if (Visible)
            {
                base.Draw(gameTime, spriteBatch);
                spriteBatch.DrawString(font, text, position, color);
            }
        }
    }
}
